//
//  SRClassMemberListTableViewCell.m
//  StoryShow
//
//  Created by CyonLeuMBP on 2017/7/26.
//  Copyright © 2017年 qudiandu.cn. All rights reserved.
//

#import "SRClassMemberListTableViewCell.h"

NSString *const kSRClassMemberListTableViewCell = @"SRClassMemberListTableViewCell";

@implementation SRClassMemberListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
        // Initialization code
    
    FZStyleSheet *css = [FZStyleSheet currentStyleSheet];
    
    self.backgroundColor = self.contentView.backgroundColor = [UIColor clearColor];
    
    self.iconImageView.iconStyle = FZIconImageViewStyleCircle;
    self.iconImageView.borderWidth = 0;
    
    self.titleLabel.textColor = [UIColor whiteColor];
    self.titleLabel.font = css.fontOfH8;
    
    UIView *selectBgView = [[UIView alloc] init];
    selectBgView.backgroundColor = [UIColor clearColor];
    self.selectedBackgroundView = selectBgView;
    
    self.tintColor = css.color_7;
}

- (void)updateCellInfo:(SRClassMemberItemModel *)item {
    [self.iconImageView fz_setAvatarImageWithUrlString:item.avatar];
    self.titleLabel.text = item.nickname;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
